package customer

import (
	"counter-help/admin/server/global"
)

// cusOrderFavorite 表结构体，表示用户收藏的订单
type CusOrderFavorite struct {
	global.GVA_MODEL
	UserID  *int `json:"userId" form:"userId" gorm:"column:user_id;comment:收藏用户 user id;size:19;"`       // 收藏用户 user id
	OrderID *int `json:"orderId" form:"orderId" gorm:"column:order_id;comment:对应收藏订单 order id;size:19;"` // 对应收藏订单 order id
}

// TableName cusOrderFavorite 表自定义表名 cus_order_favorite
func (CusOrderFavorite) TableName() string {
	return "cus_order_favorite"
}
